﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.IO;
using System.Data.OleDb;
using System.Runtime.InteropServices;
using System.Configuration;
using System.Data;

namespace WebApplication1
{

    public partial class admin : System.Web.UI.Page
    {
        string projectname = "";

        public RenRen renren = new RenRen();

        //声明调用DLL
        [DllImport("c:\\site\\face2.0.dll")]
        //功能是将根目录下的 in.jpg 处理成 result_in.jpg
        public static extern void main_proc(String a);

        // 检查一张照片是否被识别。返回01逻辑值
        [DllImport("c:\\site\\face2.0.dll")]
        public static extern int face_check(String a);

        // 检查一张照片是否被识别。返回01逻辑值
        [DllImport("c:\\site\\face2.0.dll")]
        public static extern int resize(String a);

        void CreateProjectDirectory()
        {
            if (!Directory.Exists(projectname))
                Directory.CreateDirectory(projectname);
            if (!Directory.Exists(Server.MapPath(projectname)))
                Directory.CreateDirectory(Server.MapPath(projectname));
        }



        

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                


            }
        }

    }
}